package com.vrp3d.domain.dto.showroom;

import com.vrp3d.common.consts.CommonConst;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;

/**
 * 修改展厅
 *
 * @author vrp3d
 */
@Data
public class ShowroomUpdateDTO implements Serializable {
    private static final long serialVersionUID = 2308712746252160961L;

    @ApiModelProperty(value = "展厅id")
    @Range(min = 1, message = "展厅id值最小为1")
    @NotNull(message = "展厅id不能为空")
    private Integer id;

    @ApiModelProperty(value = "展厅名称")
    @Size(min = 1, max = CommonConst.NAME_LENGTH, message = "展厅名称长度限制1-" + CommonConst.NAME_LENGTH)
    @NotBlank(message = "展厅名称不能为空")
    private String name;

/*    @ApiModelProperty(value = "展厅类型 0典藏馆1瓷艺馆2特展馆")
    @Range(max = 2, message = "展厅类型值不符合规范")
    @NotNull(message = "展厅类型不能为空")
    private Integer type;*/
}
